package com.dlc.shop.search.api.config;


import lombok.AllArgsConstructor;
import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Yami
 */
@Configuration("searchSwaggerConfiguration")
@AllArgsConstructor
public class SwaggerConfiguration {

    @Bean
    public GroupedOpenApi searchRestApi() {
        return GroupedOpenApi.builder()
                .group("搜索接口")
                .packagesToScan("com.dlc.shop.search.api.controller")
                .pathsToMatch("/**")
                .build();
    }

}
